package com.rs.game.player.dialogues.impl;

import com.rs.game.player.dialogues.Dialogue;

public class StealingCreationRange extends Dialogue {

    @Override
    public void start() {
	sendOptionsDialogue("Select a range weapon.", "Bow", "Arrows");
    }

    @Override
    public void run(int interfaceId, int componentId) {
	if (stage == -1) {
	    if (componentId == OPTION_1 || componentId == OPTION_2) {
		sendOptionsDialogue("Select a class", "Class one", "Class two", "Class three", "Class four", "Class five");
		stage = (byte) (componentId == OPTION_1 ? 1 : 2);
	    }
	} else if (stage == 1) {
	    if (componentId == OPTION_1) {
		player.getTemporaryAttributes().put("sc_request", 14192);
	    } else if (componentId == OPTION_2) {
		player.getTemporaryAttributes().put("sc_request", 14194);
	    } else if (componentId == OPTION_3) {
		player.getTemporaryAttributes().put("sc_request", 14196);
	    } else if (componentId == OPTION_4) {
		player.getTemporaryAttributes().put("sc_request", 14198);
	    } else if (componentId == OPTION_5) {
		player.getTemporaryAttributes().put("sc_request", 14200);
	    }
	    end();
	    player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" });
	} else if (stage == 1) {
	    if (componentId == OPTION_1) {
		player.getTemporaryAttributes().put("sc_request", 14202);
	    } else if (componentId == OPTION_2) {
		player.getTemporaryAttributes().put("sc_request", 14203);
	    } else if (componentId == OPTION_3) {
		player.getTemporaryAttributes().put("sc_request", 14204);
	    } else if (componentId == OPTION_4) {
		player.getTemporaryAttributes().put("sc_request", 14205);
	    } else if (componentId == OPTION_5) {
		player.getTemporaryAttributes().put("sc_request", 14206);
	    }
	    end();
	    player.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" });
	}
    }

    @Override
    public void finish() {
    }
}
